<%@ page language="java" pageEncoding="UTF-8"%>
<!--  header -->
<%@ include file="../layouts/header.jsp"%>

<!--  body -->
<div class="Main">
	<div class="Main_fix">


		<%@ include file="../layouts/left.jsp"%>

		<!-- main body -->
		<script type="text/javascript">
			function update(){
				var updateForm = document.getElementById('updateForm');				
				updateForm.submit();
			}
		</script>
		<form action="<j:uri controller="site" action="update" id="${bean.bean.id}"/>" method="post" id="updateForm">
			<div class="Main_body" id="Main_body">
				<div class="Main_locationBar">
					<div class="Main_locationBar_head"></div>
					<div class="Main_locationBar_body">
						<span id="CurrentPosition"><fmt:message key="project.name"/> > Site</span>
					</div>
					<div class="Main_locationBar_foot"></div>
				</div>


				<div class="Main_bodyAddBar">
					<div class="Main_bodyAddBar_body">
					<div class="Main_hintBar">
						<div class="Main_hintBar_head">
					
						</div>
						<div class="Main_hintBar_body">
								<p>
									<fmt:message key="form.edit.message"/>
								</p>
						</div>
						<div class="Main_hintBar_foot"></div>
					</div>
					<%@ include file="../layouts/message.jsp"%>
					
					<table border="0" cellspacing="1" cellpadding="0" class="addTable">
					<tr>
						<td class="title">
							 DomainName:	
						</td>
						<td class="content">
							  <input type="text" class="input" name="domainName"
											value="<j:out  bean="${bean}" property="domainName"/>" />
						        <j:error bean="${bean}" property="domainName"/>
						</td>
						<td class="title">
							 MaxUserCount:	
						</td>
						<td class="content">
							  	<input type="text" class="input" name="maxUserCount"
											value="<j:out  bean="${bean}" property="maxUserCount"/>" />
						        <j:error bean="${bean}" property="maxUserCount"/>
						</td>
					</tr>
					<tr>
						<td class="title">
							 Name:	
						</td>
						<td class="content">
							 <input type="text" class="input" name="name"
											value="<j:out  bean="${bean}" property="name"/>" />
						     <j:error bean="${bean}" property="name"/>
						</td>
					</tr>
					<tr>
						<td class="title">
							 Updated At						
						</td>
						<td class="content">
							 ${bean.bean.updatedAt}						
						</td>
						<td class="title">
							Created At
						</td>
						<td class="content">
							${bean.bean.createdAt}
						</td>
					</tr>					
				   </table>		   
				   
			  		</div>
				</div>

				<div class="Main_buttonGroupBar_body">
          			<input type="button" class="button" value="<fmt:message key="form.button.update"/>" onclick="update()"/>
          			<input type="button" class="button" value="<fmt:message key="form.button.concel"/>" onclick="window.location = '<j:uri controller="site" action="show" id="${site.id}"/>'"/> 
          			<input type="button" class="button" value="<fmt:message key="form.button.list"/>" onclick="window.location = '<j:uri controller="site" action="index"/>'"/>
        		</div>
			</div>
		</form>
	</div>
	<!--  footer -->
	<%@ include file="../layouts/footer.jsp"%>